// PipeJointPort.h: interface for the PipeJointPort class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PIPEJOINTPORT_H__2B16789E_9E0B_4374_8C30_E0FACAF55F02__INCLUDED_)
#define AFX_PIPEJOINTPORT_H__2B16789E_9E0B_4374_8C30_E0FACAF55F02__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "JointFunction.h"
#include "UeVector.h"

class PipeJointPort : public JointFunction  
{
public:
	PipeJointPort();
	virtual ~PipeJointPort();

public:
	void PipeDiameter(DOUBLE dbDiameter){
		m_dbPipeDiameter = dbDiameter;
	}

	DOUBLE PipeDiameter(){
		return m_dbPipeDiameter;
	}

	void Temperature(DOUBLE dbTemperature){
		m_dbTemperature = dbTemperature;
	}

	DOUBLE Temperature(){
		return m_dbTemperature;
	}

	void Press(UeVector& press){
		m_vPress = press;
	}

	UeVector Press(){
		return m_vPress;
	}

	virtual AcGeMatrix3d CoordinateInOwner(){
		return m_Matrix;
	}

	virtual AcGePoint3d PositionInOwner(){
		AcGePoint3d OriginalPt;
		AcGeVector3d vX;
		AcGeVector3d vY;
		AcGeVector3d vZ;
		m_Matrix.getCoordSystem(OriginalPt, vX, vY, vZ);
		return OriginalPt;
	}

	virtual BOOL IsFixed();
public:
	DOUBLE m_dbPipeDiameter;
	DOUBLE m_dbTemperature;
	UeVector m_vPress;
	AcGeMatrix3d m_Matrix;
};

#endif // !defined(AFX_PIPEJOINTPORT_H__2B16789E_9E0B_4374_8C30_E0FACAF55F02__INCLUDED_)
